import request from '@/utils/request'

// 获取图书列表
export const listBookIndex = () => {
    return request({
        url: '/book/index/list',
        method: 'get'
    })
}

// 添加图书
export const addBookIndex = (data) => {
    return request({
        url: '/book/index',
        method: 'post',
        data: data
    })
}